From f1b756093887b534e3a8260a10b0454d64ab4ff5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 24 Oct 2015 10:54:56 -0400 Subject: [PATCH] notebook: Document css nodes and style class This will have to be updates as we do further changes to the way GtkNotebook does its rendering. --- gtk/gtknotebook.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 84fdcfd803..6452977735 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -94,6 +94,20 @@ * * * ]| + * + * # CSS nodes + * + * GtkNotebook has a main CSS node with name notebook, a subnode + * with name tabs, and below that one subnode per tab with name + * tab. + * + * The main node gets the .frame style class when rendering the + * background of a notebook with border. It gets the .header + * style class for rendering the tab area background. + * + * The per-tab nodes get one of the style class .top, .bottom, + * .left or .right, depending on where the tabs are placed. For + * reorderable pages, the tab also gets the .reorderable-page class. */ -- 2.30.2